package com.changli03.inherirance;

public class ExtendsTest {
    public static void main(String[] args) {
        Person p1 = new Person("Lucy",19,"badmintain","woman");
//        System.out.println(p1.toString());
        Student s1 = new Student();
        s1.name = "zhangsan";
        System.out.println(s1.name);
        System.out.println(s1.getClass().getSuperclass());
        System.out.println(p1.getClass().getSuperclass());
    }
}
